package com.weiweiqin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.weiweiqin.entity.Account;
 
 
public interface AccountMapper{
    
    public List getAllAccount();
    
    public Account getAccount();
    
    public Account getAccountById(String id);
    
    public Account getAccountByNames(String spring);
    
    @Select("select * from account where username = #{name}")
    public Account getAccountByName(String name);
    
    public void addAccount(Account account);
    
    public void editAccount(Account account);
    
    public void removeAccount(int id);
}